package edu.jxut.reggie.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CategoryType implements IEnum<Integer> {

    DISHES(1,"菜品"),SET_MEAL(2,"套餐");

    @EnumValue
    @JsonValue
    private int value;
    private String desc;

    @Override
    public Integer getValue() {
        return this.value;
    }


    @Override
    public String toString() {
        return this.desc;
    }

}
